home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / manageme / snmp-dev.000 / snmp-dev / snmp_client.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-19  |  1.5 KB  |  42 lines

  1. /*
  2.  * snmp_client.h
  3.  */
  4. /***********************************************************
  5.     Copyright 1988, 1989 by Carnegie Mellon University
  6.  
  7.                       All Rights Reserved
  8.  
  9. Permission to use, copy, modify, and distribute this software and its 
  10. documentation for any purpose and without fee is hereby granted, 
  11. provided that the above copyright notice appear in all copies and that
  12. both that copyright notice and this permission notice appear in 
  13. supporting documentation, and that the name of CMU not be
  14. used in advertising or publicity pertaining to distribution of the
  15. software without specific, written prior permission.  
  16.  
  17. CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19. CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24. ******************************************************************/
  25. struct synch_state {
  26.     int    waiting;
  27.     int status;
  28. /* status codes */
  29. #define STAT_SUCCESS    0
  30. #define STAT_ERROR    1
  31. #define STAT_TIMEOUT 2
  32.     int reqid;
  33.     struct snmp_pdu *pdu;
  34. };
  35.  
  36. extern struct synch_state snmp_synch_state;
  37.  
  38. struct snmp_pdu    *snmp_pdu_create();
  39. struct snmp_pdu *snmp_fix_pdu();
  40. struct snmp_pdu *snmp_clone_pdu();
  41. char *snmp_errstring();
  42.